package org.xue.snowmall.order.feign;

import entity.GoodsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("snow-mall-product")
@RequestMapping("product/goods")
public interface GoodsFeignService {

    @RequestMapping("/findByPsmId/{psmId}")
    GoodsEntity findByPsmId(@PathVariable("psmId") Long psmId);
}
